# Contributor: lonjil <alpine@lonjil.xyz>
# Maintainer: lonjil <alpine@lonjil.xyz>
pkgname=qalculate-gtk
# the pkgver must be kept in sync with: libqalculate
pkgver=4.9.0
pkgrel=0
pkgdesc="Multi-purpose desktop calculator - GTK+ version"
url="https://qalculate.github.io/"
license="GPL-2.0-or-later"
arch="all"
makedepends="
	glib-dev
	gtk+3.0-dev
	intltool
	libqalculate-dev=~${pkgver%.*}
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/Qalculate/qalculate-gtk/releases/download/v$pkgver/qalculate-gtk-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	export CXXFLAGS="$CXXFLAGS -flto=auto"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
b95dd707d15d7f37b872f599f0e7fe17710bc3af5b826f1572856143681d0d1a74af7074ae299625810315f57946f00a56affcb90c3d4d475512a483faa1d538  qalculate-gtk-4.9.0.tar.gz
"
